<html style="overflow: hidden;">
    <head>
        <meta charset="utf-8">
         <title>中华健身俱乐部</title>
        <meta http-equiv="Pragma" content="no-cache">
        <meta http-equiv="Cache-Control" content="no-cache">
        <meta http-equiv="Expires" content="0">
        <link rel="stylesheet" type="text/css" href="/static/new_ui/new_css/bootstrap.css">
        <link rel="stylesheet" type="text/css" href="/static/new_ui/new_css/base_v3.0.css">
        <link rel="stylesheet" type="text/css" href="/static/new_ui/new_css/themes.css">
        <link rel="stylesheet" type="text/css" href="/static/new_ui/new_css/colpick.css">
        <link href="http://ui.fcstatic.naryou.cn/static/libs/easyui/themes/icon.css" rel="stylesheet" type="text/css">
        <link  style="width:16px; height=16px;" rel="shortcut icon" href="/static/new_ui/images/logo_s.png">
        <script type="text/javascript" src="/static/food/operator.js"></script>
        <style type="text/css">
        .password-input {
        border: 1px solid #15a94e !important;
        }
        
        .password-wrong {
        border: 1px solid #ea3a3c !important;
        }
        </style>
    </head>
    <body style="overflow: hidden;">
        <div class="container-fluid main">
            <!--header Begin-->
            <%- include common/header %>
            <!--header End-->
            <!--main Begin-->
            <div class="row-fluid">
                <!--leftBar Begin-->
          <div class="leftBar">
                <%- include common/dataleft %>
            </div>
                <!--leftBar End-->
                <!--rightBar Begin-->
                <div id="rightBar" style="margin-left: 200px;">
                    <iframe id="house-frame" name="house-frame" width="100%" height="100%" frameborder="0" src=<%= iframeUrl %>>
                    </iframe>
                </div>
                <!--rightBar End-->
            </div>
            <!--main End-->
        </div>

        <!-----功能配置弹出层---------------->
        <div id="configDiv" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        </div>
        <script type="text/javascript" src="/static/new_ui/new_js/jquery-2.1.3.js"></script>
        <script type="text/javascript" src="/static/libs/easyui/jquery.easyui.min.js"></script>
        <!-- <script type="text/javascript" src="/static/new_ui/new_js/base_v3.0.js"></script> -->
        <script type="text/javascript" src="/static/new_ui/new_js/bootstrap.min.js"></script>
        <script  type="text/javascript" src="/static/new_ui/new_js/build.js"></script>
        <script type="text/javascript" src="/static/new_ui/new_js/css3-mediaqueries.js"></script>
        <script type="text/javascript" src="/static/new_ui/new_js/themes.plugin.js"></script>
        <link rel="stylesheet" type="text/css" href="/static/new_ui/new_css/datepicker.css">
        <script type="text/javascript" src="/static/new_ui/new_js/datepicker.js"></script>
        <script type="text/javascript" src="/static/new_ui/new_js/pagelation.js"></script>
        <script type="text/javascript" src="/static/new_ui/new_js/zepto.touchwipe.min.js"></script>
        <script type="text/javascript" src="/static/new_ui/new_js/colpick.js"></script>
        <script type="text/javascript">
        $.extend({ //jquery extend
        turnOnAjax: function(flag, str) {
        var html = "<div class='modal-backdrop fade in' id='ajaxloadimg' style='z-index:20000'><center><img src='/static/new_ui/img/ajaxloadimg.gif' style='margin: auto;width: 50px;margin-top: 20%;'><p style='color: white;font-weight: bold;'>" + str + "</p></center></div>"
        if (flag == 'on') {
        $("body").append(html)
        } else {
        $("#ajaxloadimg").remove();
        }
        },
        });
        </script>
        <script type="text/javascript">
        function openConfig() {
        //$('#configDiv').load('/merse/config');
        $("#configDiv").load("/merse/config", function(responseTxt, statusTxt, xhr) {
        if (statusTxt == "success") {}
        if (statusTxt == "error") {
        $("#configDiv").html(responseTxt);
        }
        $("#configDiv").modal('show');
        });
        }
        function funWap() {
        window.open('http://m.lsklf.com/pwap/jnct/', '微官网', 'height=505,width=320');
        }
        function SubmitForm() {
        document.submitform.submit();
        }
        $(function() {
        var groupId = $('.pull-left a').attr('groupid');
        initMenu(groupId);
        $($('.pull-left a').parent().get(0)).addClass('active');
        $(".btn-gray").bind("click", function() {
        $("#revisePass .modal-body input[type=password]").val("");
        $("#modiry_name").removeClass("password-wrong");
        $("#newPass").removeClass("password-wrong");
        $("#rpwd").removeClass("password-wrong");
        $("#oldPass").removeClass("password-wrong");
        })
        })
        $(".in-text2").bind("click", function() {
        var $this = $(this);
        $this.addClass("password-input");
        })
        $(".in-text2").bind("blur", function() {
        var $this = $(this);
        $this.removeClass("password-input");
        })
        function initMenu(groupId) {
        $.ajax({
        url: "/initMenu",
        async: false,
        type: "POST",
        dataType: "html",
        data: {
        "groupId": groupId
        },
        success: function(data) {
        $(".leftBar").html(data).ready(function() {
        var $v = $(".leftBar .active a").eq(0);
        if (!$v.hasClass("no-child-menu")) {
        $("#house-frame").attr("src", $(".submenu li").eq(0).addClass("active").find("a").attr("href"));
        } else {
        $("#house-frame").attr("src", $(".leftBar .parent-menu").first().attr("href"));
        }
        });
        },
        error: function(data) {
        //session失效后，重新刷新页面跳转到登录页面；
        window.location.href = window.location.href;
        }
        });
        }
        function modifyPassword() {
        $("#noldPass_wrong").empty();
        if ($.trim($("#modiry_name").val()) == "") {
        $("#modiry_name_wrong").html('姓名不能为空');
        $("#modiry_name").addClass("password-wrong");
        $("#modiry_name").focus();
        return;
        } else if ($("#modiry_name").val().length > 15) {
        $("#modiry_name_wrong").html('姓名不能超过15个字符');
        $("#modiry_name").addClass("password-wrong");
        $("#modiry_name").focus();
        return;
        } else {
        $("#modiry_name").removeClass("password-wrong");
        $("#modiry_name_wrong").html('');
        }
        if ($.trim($("#newPass").val()) == "") {
        $("#newPass_wrong").html('新密码不能为空!');
        $("#newPass").addClass("password-wrong");
        $("#newPass").focus();
        return;
        } else {
        $("#newPass").removeClass("password-wrong");
        $("#newPass_wrong").html('');
        }
        if ($.trim($("#rpwd").val()) == "") {
        $("#rpwd_wrong").html('确认密码不能为空');
        $("#rpwd").addClass("password-wrong");
        $("#rpwd").focus();
        return;
        } else {
        $("#rpwd").removeClass("password-wrong");
        $("#rpwd_wrong").html("");
        }
        if (!($.trim($("#newPass").val()) == $.trim($("#rpwd").val()))) {
        $("#rpwd_wrong").html('两次密码一致!');
        $("#newPass").addClass("password-wrong");
        $("#rpwd").addClass("password-wrong");
        $("#rpwd").focus();
        return;
        } else {
        $("#newPass").removeClass("password-wrong");
        $("#rpwd").removeClass("password-wrong");
        $("#rpwd_wrong").html("");
        }
        $.ajax({
        url: "/merse/modifyPassword.htm",
        type: "POST",
        data: $("#modifyMerchantOpPassword").serialize(),
        success: function(data) {
        if (!data.success) {
        $("#oldPass").addClass("password-wrong");
        $("#noldPass_wrong").html(data.msg);
        return;
        } else {
        $("#revisePass").css("display", "none");
        $(".modal-backdrop").remove();
        $("#revisePass .modal-body input[type=password]").val("");
        $("#modiry_name").removeClass("password-wrong");
        $("#newPass").removeClass("password-wrong");
        $("#rpwd").removeClass("password-wrong");
        $("#oldPass").removeClass("password-wrong");
        }
        },
        error: function(data) {
        alertMsg("系统内部出错,请联系管理员!");
        }
        });
        }
        /*function parserToJson(strData) {
        return (new Function("return " + strData))();
        }*/
        function alertMsg(text) {
        var htmlVal = '<div class="layer-box"><h6 class="layerTitle">提示<a href="javascript:;" class="closeBtn" onclick="EasyMask.close()"></a></h6><div class="popdiv"><div style="font-size:16px;">' + text + '</div><div class="btnrow clearfix"></div></div></div>';
        EasyMask.init({
        width: 340,
        height: 170,
        html: htmlVal,
        opacity: 1,
        molor: 'white',
        fclose: false
        });
        }
        </script>
        <!--[if lte IE 6]>
        <script src="http://static.cc.com/static/new_ui/js/picpng.js"></script>
        <!--<script type="text/javascript">
        DD_belatedPNG.fix('*');
        </script>-->
    </body>
</html>